New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudStack modules: rename _facts -> _info #61090
Conversation
This comment has been minimized.
This comment has been minimized.
I though about changing the modules to return lists: list of zones, list of instances, with the possibility to filter by name to only get one item (but still a list). @dpassante any thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs portion LGTM
@resmo I think it would be an interesting feature. However, returning a list for filtered items may break existing deployments that expect a dictionary. I also thought about writing a meta module that exposes lists of resources with the ability to filter by type of resources and by name to not break the existing but it seemed redundant with other modules and time-consuming to write and to maintain. |
@felixfontein Indeed. So, it's a good time to change the values returned by the new _info module! |
@dpassante @resmo PTAL! |
CS tests run through. Sanity tests should be fixed with the last commits. ready_for_review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
shipit |
Fixes #53916 |
Final commits. Fix version number for deprecation and add examples. |
shipit |
Thanks @felixfontein for these changes. |
shipit |
@samccann @s-hertel @dpassante @resmo thank you all for helping getting this done! :) |
* Rename cloudstack _facts -> _info * Add changelog. * Fix errors due to overloaded get_result having different parameter names. * Fix examples. * Change debug tasks. * Remove unneeded code. * Change from rename -> deprecate+new module. * Make cs_zone_info return a list. * Make cs_instance_info return a list. * Fix return value docs. * Fix typo. * Improve tests. * Fix cs_zone_info. * Linting. * Fix alias/option switch. * Fix version numbers. * Extend docs.
* Rename cloudstack _facts -> _info * Add changelog. * Fix errors due to overloaded get_result having different parameter names. * Fix examples. * Change debug tasks. * Remove unneeded code. * Change from rename -> deprecate+new module. * Make cs_zone_info return a list. * Make cs_instance_info return a list. * Fix return value docs. * Fix typo. * Improve tests. * Fix cs_zone_info. * Linting. * Fix alias/option switch. * Fix version numbers. * Extend docs.
SUMMARY
Fixes #60515, fixes #53916.
ISSUE TYPE
COMPONENT NAME
cs_instance_facts
cs_zone_facts